﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace CrclzChat.Areas.Identity.Data
{
	public class FloorReply
	{
		[Key]
		[Required]
		[DatabaseGenerated(DatabaseGeneratedOption.None)]
		public Guid FloorReplyId { get; set; }

		[Required]
		public Guid UserId { get; set; }

		[Required]
		[MinLength(5)]
		[MaxLength(140)]
		public string Text { get; set; }

		[Required]
		public Guid FloorId { get; set; }

		[Required]
		public DateTime Time { get; set; }

		// Navigation Properties
		public OneUser User { get; set; }

		public Floor Floor { get; set; }
	}
}
